package cn.dengta.webapp.im.entity;

import java.util.Date;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import cn.dengta.webapp.user.model.Gender;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("im_speed_user_info")
public class SpeedUserInfo extends TimeBasedEntity {

	/** 用户性别 */
	private Gender gender;
	/** 用户接听次数 */
	private Integer answerVideoTimes;
	/** 用户注册时间 */
	private Date regTime;

	public static SpeedUserInfo init(Long userId, Gender gender, Date regTime) {
		SpeedUserInfo info = new SpeedUserInfo();
		info.setId(userId);
		info.setGender(gender);
		info.setAnswerVideoTimes(0);
		info.setRegTime(regTime);
		info.initTime(new Date());
		return info;
	}

}
